<?php 

/*echo __LINE__; 
echo'<br>';
echo __FILE__;
echo'<br>';
echo __DIR__;
echo'<br>';
echo __CLASS__;
echo'<br>';
echo __METHOD__;
echo'<br>';*/

/*function __autoload($classname)
{	
	$paths=array(
		'./'.$classname.'.class.php',
		'./core/'.$classname.'.class.php'
		);
	foreach ($paths as $path) {
		//file_exists — 检查文件或目录是否存在
		if (file_exists($path)) {
			include_once $path;
			break;
		}
	}
	
}
$obj=new Dog();
$obj->run();*/

$res= gettype($_GET);
var_dump($res);
var_dump($_GET);
//var_dump(intval());
$foo = "5bar"; // string
$bar = true;   // boolean

var_dump(settype($foo, "integer")); // $foo 现在是 5   (integer)
var_dump(settype($bar, "string"));  // $bar 现在是 "1" (string)
 ?>